package com.foreknow.dao;

import com.foreknow.model.Admin;

import java.sql.SQLException;
import java.util.List;

public interface AdminDao {
    /**
     * 添加
     * @param admin
     * @return
     */
    public boolean save(Admin admin) throws SQLException;

    /**
     * 查询
     * @return
     */
    public Admin queryAll(String name,String password) throws SQLException;
}
